#!/bin/bash
cat <<eof > tmpjob

#PBS -lwalltime=2:00:00  -larch=x86_64 -lnodes=$1
#PBS -N DREAM
#PBS -o  ${HOME}/batches
#PBS -e ${HOME}/batches

export DREAM_HOME=/home/dgorea/Algorithms/DREAM_PARALLEL

export MODEL_HOME=$2

export SCRATCH_DIR=/scratch

# Start paralel DREAM
cd \${DREAM_HOME}
\${DREAM_HOME}/startDream.sh

eof
qsub tmpjob
